package com.xf.day02;

import java.util.Scanner;
/**
 *  java 三元操作符号
 */
public class TripleOperDemo {
    public static void main(String[] args) {

        System.out.println("请输入你的年龄:");
        Scanner scanner = new Scanner(System.in);
        int age = scanner.nextInt();

        String result = ( age >=18 )? "成年" : "未成年";
        System.out.println("具体的结果为: " + result);


    }
}
